package com.woniuxy.entity.pageinfo;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @NAME: PageRequest
 * @Description:
 * @author: Mr Tang
 * @Company: 蜗牛学院
 * @DateTime: 2021/5/20 12:00
 * @version: 1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@JsonIgnoreProperties(value = {"handler"})
@ApiModel("分页请求实体")
public class PageRequest implements Serializable {
    @ApiModelProperty("每页多少行")
    private Integer limit;//pageSize
    @ApiModelProperty("多少页")
    private Integer pageNum;//
    @ApiModelProperty("sql的分页起始索引")
    private Integer offset;//(pageNum-1)*pageSize
    @ApiModelProperty("排序")
    private String sort;//排序
    @ApiModelProperty("排序规则")
    private String sortOrder;//排序规则
}
